//Growingio统计代码
/* eslint-disable no-unused-vars */
/* eslint-disable prefer-template */
var queryString = function (key) {
	return (new RegExp('\\?(?:.+(?:&|=))?' + key + '=([^&#]*)(?:&|#|$)').exec(location.href) || [])[1] || '';
};
var _vds = window._vds = window._vds || [];
var _src = queryString('source');
var _path = location.pathname;
var _rsid = queryString('regsourceid');
var _actid = queryString('activityId');

(function () {
	_vds.push(['setAccountId', 'b9598a05ad0393b9']);
	_vds.push(['setPageGroup', 'hhthirdreg']);
	_vds.push(['setPS1', _src]);
	_vds.push(['setPS2', _actid]);
	var IsAuthenticated = '@WapBaseController.IsAuthenticated'.toLowerCase();
	if (IsAuthenticated == 'true') {
		_vds.push(['setCS1', 'user_name', '@Html.Raw(WapBaseController.PPDUser.UserName)']);
	}

	var vds = document.createElement('script');
	vds.type = 'text/javascript';
	vds.async = true;
	vds.src = (location.protocol == 'https:' ? 'https://' : 'http://') + 'dn-growing.qbox.me/vds.js';
	var s = document.getElementsByTagName('script')[0];
	s.parentNode.insertBefore(vds, s);
})();
